import AppMenu from '@/views/home/components/AppMenu.vue'

const manageRouter = [
    {
        name: '用户管理',
        path: 'user',
        component: AppMenu,
        redirect: 'UseInfo',
        meta: {
          icon: 'Document'
        },
        children: [
          {
            path: '/home/user/index',
            name: '列表',
            component: () => import('@/views/demo/UseInfo.vue')
          },
          {
            path: '/home/user/add',
            name: '添加',
            component: () => import('@/views/demo/user/add.vue'),
          },
          {
            path: '/home/user/edit',
            name: '编辑',
            component: () => import('@/views/demo/user/edit.vue'),
          },
          {
            path: '/home/user/del',
            name: '删除',
            meta: {
              keepAlive: true
            },
            component: () => import('@/views/demo/user/del.vue'),
          }
        ]
      },
      {
        name: '角色管理',
        path: '',
        component: AppMenu,
        meta: {
          icon: 'Chicken'
        },
        children: [
          {
            path: '/Navigator_2_1',
            name: '角色',
            component: () => import('@/views/demo/Role.vue')
          },
          {
            path: '/User',
            name: '用户',
            meta: {
              keepAlive: true
            },
            component: () => import('@/views/demo/User.vue')
          }
        ]
      },
      {
        name: '演示管理',
        path: '',
        component: AppMenu,
        meta: {
          icon: 'Burger'
        },
        children: [
          {
            path: '/Setting',
            name: 'Setting',
            meta: {
              target: '_blank'
            },
            component: () => import('@/views/demo/Setting.vue')
          }
        ]
      },
      {
        name: '系统设置',
        path: '',
        component: AppMenu,
        meta: {
          icon: 'Burger'
        },
        children: [
          {
            path: '/Setting',
            name: 'Setting',
            meta: {
              target: '_blank'
            },
            component: () => import('@/views/demo/Setting.vue')
          }
        ]
      },
      {
        name: '使用说明',
        path: '',
        component: AppMenu,
        meta: {
          icon: 'Burger'
        },
        children: [
          {
            path: '/Setting',
            name: 'Setting',
            meta: {
              target: '_blank'
            },
            component: () => import('@/views/demo/Setting.vue')
          }
        ]
      },
    //   {
    //     name: '其他',
    //     path: '',
    //     component: AppMenu,
    //     meta: {
    //       hide: true
    //     },
    //     children: [
    //       {
    //         path: '/refresh',
    //         name: '刷新',
    //         meta: {
    //           hide: true
    //         },
    //         component: () => import('@/views/demo/RefreshView.vue')
    //       }
    //     ]
    //   },
      {
        path: '/home',
        name: '新页面打开',
        meta: {
          icon: 'Female'
        },
        component: () => import('@/views/home/Home.vue')
      },
      


  ]


export default manageRouter
